home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 991 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.3 KB  |  49 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!titan
  3. From: titan@netcom.com (Eric Cummings)
  4. Subject: VC++ and Serial Comm + RC
  5. Message-ID: <titanDKvM3w.Iw5@netcom.com>
  6. Sender: titan@netcom9.netcom.com
  7. Reply-To: titan@netcom.com
  8. Organization: Caltech Aeronautics
  9. X-Newsreader: Forte Free Agent 1.0.82
  10. Date: Mon, 8 Jan 1996 19:02:54 GMT
  11.  
  12. This is probably a dumb question, but why can't I use ANY serial
  13. communications calls (PurgeComm, etc.) in the application I am TRYING
  14. to develop for driving an RS-232 line from my comm port?
  15.  
  16. I am using the latest VC++.  Windows.h I find:
  17.  
  18. #ifdef RC_INVOKED
  19.  
  20. /* Turn off a bunch of stuff to ensure that RC files compile OK. */
  21. #define NOATOM
  22. #define NOGDICAPMASKS
  23. #define NOMETAFILE
  24. #define NOMINMAX
  25. #define NOMSG
  26. #define NOOPENFILE
  27. #define NORASTEROPS
  28. #define NOSCROLL
  29. #define NOSOUND
  30. #define NOSYSMETRICS
  31. #define NOTEXTMETRIC
  32. #define NOWH
  33. #define NOCOMM
  34. #define NOKANJI
  35. #define NOMCX
  36. #endif /* RC_INVOKED */
  37.  
  38. which turns off all sorts of things (including serial comm---the
  39. NOCOMM flag) if RC is invoked.  Does this mean that if I use an RC
  40. file I lose this much capability?  Doe it mean that I should
  41. precompile my RC file?  
  42.  
  43. I used the Wiz to make a dialog-based app foundation.  Is this where I
  44. went astray?  I am very new to this stuff, so . . .
  45.  
  46. Eric Cummings
  47.  
  48.  
  49.